package com.aixx.springcloud.alibaba.service.impl;

import com.aixx.springcloud.alibaba.dao.storageDao;
import com.aixx.springcloud.alibaba.domain.CommonResult;
import com.aixx.springcloud.alibaba.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author shkstart
 * @create 2021-02-18 10:30
 */
@Service
public class StorageServiceimpl implements StorageService {

    @Resource
    private storageDao storageDao;

    @Override
    public void decrease(Long productId, Integer count) {
          storageDao.decrease(productId, count);

    }
}
